const http = uni.$u.http

// post请求，根据类型获取字典
export const findDict = (params, config = {}) => http.post('/app/findDict', params, config)

// post请求，查询用户信息
export const findByUser = (params, config = {}) => http.post('/app/userAppController/findByUser', params, config)

// post请求，查询首页销售额
export const homePageData = (params, config = {}) => http.post('/app/payment/homePageData', params, config)

// post请求，获取邀约顾客
export const memberMessageFindList = (params, config = {}) => http.post('/app/memberMessageFindList', params, config)

// post请求，获取历史顾客顾客
export const newActivityMemberList = (params, config = {}) => http.post('/app/newActivityMemberList', params, config)

// post请求，查看订单明细列表
export const getOrderList = (params, config = {}) => http.post('/app/payment/getOrderList', params, config)

// post请求，获取订单信息
export const getOrderDetail = (params, config = {}) => http.post('/app/payment/getOrderDetail', params, config)

// post请求，发起退款
export const checkOrderIsRefund = (params, config = {}) => http.post('/app/payment/checkOrderIsRefund', params, config)

// post请求，判断该订单是否允许退款
export const initiateRefund = (params, config = {}) => http.post('/app/payment/initiateRefund', params, config)

// post请求，获取选择活动日店面列表
export const getActivityList = (params, config = {}) => http.post('/app/fashionable/getActivityList', params, config)

// post请求，收款下单
export const makeCollection = (params, config = {}) => http.post('/app/payment/makeCollection', params, config)

// post请求，查询生成的订单列表
export const selectHistoryOrCurrentOrder = (params, config = {}) => http.post('/app/payment/selectHistoryOrCurrentOrder', params, config)

// post请求，生成付款二维码
export const generateQRCode = (params, config = {}) => http.post('/app/payment/generateQRCode', params, config)

// post请求，获取银行转账信息
export const generateBankTransfer = (params, config = {}) => http.post('/app/payment/generateBankTransfer', params, config)

// post请求，查询订单状态
export const checkOrder = (params, config = {}) => http.post('/app/payment/checkOrder', params, config)

// post请求，店面查询
export const findStorefrontInfo = (params, config = {}) => http.post('/app/findStorefrontInfo', params, config)

// post请求，店家付款获取活动列表
export const getActivityStoreList = (params, config = {}) => http.post('/app/fashionable/getActivityStoreList', params, config)

// post请求，添加顾客信息
export const saveMember = (params, config = {}) => http.post('/app/fashionable/saveMember', params, config)

// post请求，判断店面是否可以使用博美祺对账/收款
export const checkStore = (params, config = {}) => http.post('/app/reconciliation/checkStore', params, config)

// post请求，重复顾客
export const repeatCustomerList = (params, config = {}) => http.post('/app/repeatCustomerList', params, config)